From 1755c0ae781ed89c058e4844a14154f246a0f175 Mon Sep 17 00:00:00 2001 From: Ell Date: Sun, 7 Jun 2020 19:59:14 +0300 Subject: [PATCH] palette: annotate BablPalette::radii as atomic --- babl/babl-palette.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/babl/babl-palette.c b/babl/babl-palette.c index 1aa1c09..086da67 100644 --- a/babl/babl-palette.c +++ b/babl/babl-palette.c @@ -29,6 +29,9 @@ #ifdef HAVE_STDATOMIC_H #include +#define BABL_ATOMIC _Atomic +#else +#define BABL_ATOMIC #endif #define HASH_TABLE_SIZE 1111 @@ -49,7 +52,7 @@ typedef struct BablPalette */ double *data_double; unsigned char *data_u8; - BablPaletteRadius *radii; + BablPaletteRadius *BABL_ATOMIC radii; volatile unsigned int hash[HASH_TABLE_SIZE]; } BablPalette; -- 2.30.2